package com.blog.quartzTest;

import org.quartz.JobDetail;
import org.quartz.Scheduler;
import org.quartz.Trigger;
import org.quartz.impl.StdSchedulerFactory;

import java.util.concurrent.TimeUnit;

import static org.quartz.JobBuilder.newJob;
import static org.quartz.SimpleScheduleBuilder.simpleSchedule;
import static org.quartz.TriggerBuilder.newTrigger;

/**
 * @author cgx
 * @Date 2021/11/26 17:17
 */
public class _06_properties {

    public static void main(String[] args) {
        try {
            Scheduler scheduler = new StdSchedulerFactory().getScheduler();
            scheduler.start();


            System.err.println("默认名  "+scheduler.getSchedulerName());
            System.err.println("线程数  "+scheduler.getMetaData().getThreadPoolSize());
            scheduler.shutdown();
        }catch (Exception e){

        }
    }
}
